#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>
#
# Foods N' Roses webapp URL mappings.
#
# Created on 2008-08-15.
# $Id$
#

from django.conf.urls.defaults import patterns

urlpatterns = patterns('buggarden.foodsnroses.views',

    # Common views (excluding not_found, which is the last mapping).
    (r'^error/$', 'error'),
    (r'^doc/(?P<path>.+)/$', 'document'),
    # (r'^lang/$', 'change_language'),
    
    # Resto views.
    (r'^$', 'home'),
    (r'^restos/$', 'resto_catalog'),
    (r'^add_resto/$', 'add_resto'),
    (r'^resto/(?P<uid>\w+)/$', 'resto'),
    (r'^resto/(?P<uid>\w+)/comments/$', 'resto_comments'),
    (r'^resto/(?P<uid>\w+)/photo/$', 'resto_photo'),
    (r'^search/(?P<name>\w+)/$', 'search'),
    
    # 404 not found.
    (r'^.*/$', 'not_found'),  # This must be the last mapping.
)



